import _ from 'lodash'

const echartsDom: any[] = []

export const echartsResize = (eDom: any) => {
  echartsDom.push(eDom)
  const fn = () => {
    echartsDom.forEach(item => item.resize())
    console.log('++++++++++++++')
  }

  window.onresize = _.debounce(fn, 100)
 
}